<html>
<head>
<link rel="stylesheet" href="@{'/public/stylesheets/forms.css'}">

<link rel="stylesheet" href="@{'/public/stylesheets/forms.css'}">
<link rel="stylesheet" href="@{'/public/stylesheets/frames.css'}">

</head>
<body>
	<h3> Edit an entity</h3>
 
  <form name = entity action="@{Entity.entityedited(entity.id)}" 
   method ="POST" >
   <div class = "content">
    <div class = "row" >
     <div class="left" >Entity Name</div>
     <div class= "right">
      <input name= "name" type="text" class="text" required
       value=${entity.entityName}  />
     </div>
     <div class = "clear"></div>
     </div>
     </div>
   <div class="row">
    <div class="left"> Entity Status</div>
    #{if check == true}
    <div class="right">
     <input type="radio" name="status" value="Locked" checked required/>Lock
     <br /> <input
      type="radio" name="status" value="Unlocked" required/>Unlock<br />
    </div>
     <div class="clear" ></div>
   </div>
   #{/if}
    #{if check == false}
    <div class="right">
     <input type="radio" name="status" value="Locked"  required/>Lock
     <br /> <input
      type="radio" name="status" value="Unlocked" checked required/>Unlock<br />
    </div>
     <div class="clear" ></div>
   </div>
   #{/if}
   
   <div class = "row">
    <div class ="left"></div>
    <div class = "right">
    
     <input type=submit value="Save Changes">
     
    <div class ="clear"></div>
   </div>
   #{if flash.error}
		<p style="color:#c00">
		${flash.error}
		</p>
		#{/if}
     
  </div>
 </form>
</body>
</html>
				
	
	